#!/usr/bin/env node

const log = console.log;

//log('CPU architecture', process.arch);
//log('OS:',process.platform);

//log('\npid:', process.pid);
//log('execPath', process.execPath);



const stdin = process.stdin,
      stdout = process.stdout;

stdin.on('data', (res)=>{
  stdout.write(res.toString('utf8')); 
})
 
stdin.on('end', ()=>{
  stdout.end('bye');
})

//log('\nnode.js ver:', process.version);
//log('login username:', process.getuid());
//log('user group:', process.getgid());
//log('pwd:', process.cwd());

//log('\nrss:', process.memoryUsage().rss);
//log('heapTotal', process.memoryUsage().heapTotal);
//log('heapUsed', process.memoryUsage().heapUsed);
//log('external', process.memoryUsage.external);

//log('\nenv:', process.env);
//log('host name:', process.env.HOSTNAME);

